/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_offer_cmpst_role_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_OFFER_CMPST_ROLE_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_offer_cmpst_role_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_OFFER_CMPST_ROLE_HIS::CTable_PPM_OFFER_CMPST_ROLE_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_OFFER_CMPST_ROLE_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  OFFER_NBR.setField( "OFFER_NBR", DATA_CHAR, 128, 0 );
  makeTableItem( OFFER_NBR );
  ROLE_ID.setField( "ROLE_ID", DATA_DOUBLE, 22, 2 );
  makeTableItem( ROLE_ID );
  makeKeyItem(ROLE_ID);
  UP_ROLE_ID.setField( "UP_ROLE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( UP_ROLE_ID );
  STD_CODE.setField( "STD_CODE", DATA_CHAR, 20, 0 );
  makeTableItem( STD_CODE );
  ROLE_NUM_MAX.setField( "ROLE_NUM_MAX", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_NUM_MAX );
  ROLE_NUM_MIN.setField( "ROLE_NUM_MIN", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_NUM_MIN );
  ROLE_NAME.setField( "ROLE_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( ROLE_NAME );
  EXIST_TYPE.setField( "EXIST_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( EXIST_TYPE );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  AMOUNT.setField("AMOUNT" , DATA_CHAR , 20 , 0 );
  makeTableItem(AMOUNT);
  AMOUNT_MAX.setField("AMOUNT_MAX" , DATA_CHAR , 20 , 0 );
  makeTableItem(AMOUNT_MAX);
  DESCRIPTION.setField("DESCRIPTION" , DATA_CHAR , 4000 , 0 );
  makeTableItem(DESCRIPTION);
}


CTable_PPM_OFFER_CMPST_ROLE_HIS::CTable_PPM_OFFER_CMPST_ROLE_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_OFFER_CMPST_ROLE_HIS" );
  prepareTable();
  prepareQuery();
 
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID ); 
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  OFFER_NBR.setField( "OFFER_NBR", DATA_CHAR, 128, 0 );
  makeTableItem( OFFER_NBR );
  ROLE_ID.setField( "ROLE_ID", DATA_DOUBLE, 22, 2 );
  makeTableItem( ROLE_ID );
  makeKeyItem(ROLE_ID);
  UP_ROLE_ID.setField( "UP_ROLE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( UP_ROLE_ID );
  STD_CODE.setField( "STD_CODE", DATA_CHAR, 20, 0 );
  makeTableItem( STD_CODE );
  ROLE_NUM_MAX.setField( "ROLE_NUM_MAX", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_NUM_MAX );
  ROLE_NUM_MIN.setField( "ROLE_NUM_MIN", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_NUM_MIN );
  ROLE_NAME.setField( "ROLE_NAME", DATA_CHAR, 512, 0 );
  makeTableItem( ROLE_NAME );
  EXIST_TYPE.setField( "EXIST_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( EXIST_TYPE );
  APP_STATE.setField( "APP_STATE", DATA_CHAR, 20, 0 );
  makeTableItem( APP_STATE );
  AMOUNT.setField("AMOUNT" , DATA_CHAR , 20 , 0 );
  makeTableItem(AMOUNT);
  AMOUNT_MAX.setField("AMOUNT_MAX" , DATA_CHAR , 20 , 0 );
  makeTableItem(AMOUNT_MAX);
  DESCRIPTION.setField("DESCRIPTION" , DATA_CHAR , 4000 , 0 );
  makeTableItem(DESCRIPTION);
}

CTable_PPM_OFFER_CMPST_ROLE_HIS::~CTable_PPM_OFFER_CMPST_ROLE_HIS( )
{
    close();
}

